import request from "@/utils/request";

// 查询现场巡查问题列表
export function listInspectionIssue(query) {
  return request({
    url: "/scene/inspectionIssue/list",
    method: "get",
    params: query
  });
}
// 查询现场巡查问题详细
export function getInspectionIssue(id) {
  return request({
    url: "/scene/inspectionIssue/" + id,
    method: "get"
  });
}

// 新增现场巡查问题
export function addInspectionIssue(data) {
  return request({
    url: "/scene/inspectionIssue",
    method: "post",
    data: data
  });
}

// 修改现场巡查问题
export function updateInspectionIssue(data) {
  return request({
    url: "/scene/inspectionIssue",
    method: "put",
    data: data
  });
}
// 提交现场巡查问题
export function submitInspectionIssue(query) {
  return request({
    url: "/scene/inspectionIssue/submit",
    method: "get",
    params: query
  });
}
// 删除现场巡查问题
export function delInspectionIssue(id) {
  return request({
    url: "/scene/inspectionIssue/" + id,
    method: "delete"
  });
}
